.wave-card {
  position: relative;
  transition: all 0.5s;
}

// background: linear-gradient(60deg, rgba(84, 58, 183, 1) 0%, rgba(0, 172, 193, 1) 100%);
/* 	background: #FFAFBD;  
	background: -webkit-linear-gradient(to right, #ffc3a0, #FFAFBD);  
	background: linear-gradient(to right, #ffc3a0, #FFAFBD); 
 */
// color: white;
.bg-card {
  position: relative;
  .bg-mask {
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
  .bg {
    height: 450px;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s;
    ::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
    }
  }
}
.avators {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr 0.5fr 1fr;
  grid-template-rows: 1fr;
  transition: all 0.5s;
  .avators-lf,
  .avators-rg {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: 400;
    color: #fff;
    font-size: 1.4rem;
  }

  .avators-lf {
    justify-content: end;
  }
  .avators-rg {
    justify-content: start;
  }

  .rg-img,
  .lf-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: all 0.5s;
    margin-bottom: 8px;
  }

  .heart {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.5s;
    .love {
      position: relative;
      cursor: pointer;
      width: 45px;
      height: 45px;
      transition: all 0.5s;
      background: #ff0000;
      /* 盒子旋转45度 */
      transform: rotate(45deg) scale(0.9);
      box-shadow: 0 0 30px 5px rgba(255, 0, 0, 0.7);
      animation: change 3s infinite;
      -webkit-animation: change 3s infinite;
      &:after,
      &:before {
        content: '';
        position: absolute;
        width: 45px;
        height: 45px;
        background-color: #ff0000;
        border-radius: 50%;
        box-shadow: 0 0 30px 5px rgba(255, 0, 0, 0.7);
      }
      &:after {
        left: -23px;
      }

      &:before {
        top: -23px;
      }
    }

    @keyframes change {
      from {
        transform: rotate(45deg) scale(0.7);
      }

      50% {
        transform: rotate(45deg) scale(1);
      }

      to {
        transform: rotate(45deg) scale(0.7);
      }
    }
  }
}

.waves {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15vh;
  // margin-bottom: -7px; /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

/* Animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 10vh;
    max-height: 60px;
    min-height: 60px;
  }
  .bg-card {
    .bg {
      height: 280px;
      width: 100%;
    }
  }
  .avators {
    grid-template-columns: 1fr 0.6fr 1fr;

    .heart {
      .love {
        width: 30px;
        height: 30px;
        background: #ff0000;
        /* 盒子旋转45度 */
        transform: rotate(45deg) scale(0.9);
        box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.7);
        animation: change 3s infinite;
        -webkit-animation: change 3s infinite;
        &:after,
        &:before {
          content: '';
          position: absolute;
          width: 30px;
          height: 30px;
          background-color: #ff0000;
          border-radius: 50%;
          box-shadow: 0 0 30px 5px rgba(255, 0, 0, 0.7);
        }
        &:after {
          left: -15px;
        }

        &:before {
          top: -15px;
        }
      }
    }
    .rg-img,
    .lf-img {
      width: 60px;
      height: 60px;
    }
  }

  .content {
    height: 30vh;
  }
  h1 {
    font-size: 24px;
  }
}
